<?php
if (!empty($messages)) {
    echo"<div class=\"alert alert-error\">";
    foreach ($messages as $key => $value) {
        echo $value['message'] . '<br>';
    }
    echo"</div>";
}
//echo"<pre>";
//var_dump($html);
//echo"<pre>";
foreach ($html as $key => $value) {
    echo $value;
}
?>